package com.sc.nft.enums;

public enum CoinCategoryEnum {
    INTEGRAL(1L,"积分");



    private Long _code;
    private String _name;


    CoinCategoryEnum(Long code, String name) {
        this._code = code;
        this._name = name;
    }

    public Long getCode() {
        return _code;
    }

    public String getName() {
        return _name;
    }


    public static String getValue(Long code) {
        CoinCategoryEnum[] values = values();
        for (CoinCategoryEnum v : values) {
            if (v.getCode().equals(code)) {
                return v.getName();
            }
        }
        return null;
    }
}
